package com.example.mybatis.transaction;
import javax.sql.DataSource;
import java.sql.Connection;
/**
* @Description: 事务工厂
* @Param:
* @return:
* @Author: tangzhaofeng
* @Date: 5/28/2024
*/
public interface TransactionFactory {

    Transaction newTransaction(Connection conn);

    Transaction newTransaction(DataSource dataSource, TransactionIsolationLevel level, boolean autoCommit);

}
